<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>When installing a GTK+ application, configure reports
that it can't find GTK. [GTK 2.x]</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="GTK+ FAQ"
HREF="book1.html"><LINK
REL="UP"
TITLE="How to find, configure, install, and troubleshoot GTK+"
HREF="c192.html"><LINK
REL="PREVIOUS"
TITLE="I've compiled and installed GTK+, but I can't get any
programs to link with it! [GTK 2.x]"
HREF="x284.html"><LINK
REL="NEXT"
TITLE="Development of GTK+"
HREF="c323.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>GTK+ FAQ</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x284.html"
ACCESSKEY="P"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>How to find, configure, install, and troubleshoot GTK+</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="c323.html"
ACCESSKEY="N"
>Next &#62;&#62;&#62;</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN306"
>When installing a GTK+ application, configure reports
that it can't find GTK. <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></H1
><P
>There are several common reasons for this:</P
><P
></P
><UL
><LI
><P
>You have an old version of GTK installed
somewhere. You should remove this old copy, but note that
this may break applications that have been compiled against
the old version.</P
></LI
><LI
><P
><TT
CLASS="LITERAL"
>pkg-config</TT
> (or another
component of GTK) isn't in your path, or there is an old
version on your system. Type:</P
><P
><P
CLASS="LITERALLAYOUT"
><TT
CLASS="LITERAL"
>pkg-config gtk+-2.0 --modversion</TT
></P
></P
><P
>to check for both of these. If it returns a value
different from what you expect, then you have an old
version of GTK on your system.</P
></LI
><LI
><P
>The ./configure script can't find the GTK
libraries. As ./configure compiles various test programs, it needs to be
able to find the GTK libraries. See the question above
for help on this. </P
></LI
></UL
><P
>If none of the above help, then have a look in
config.log, which is generated by ./configure as it runs. At the
bottom will be the last action it took before failing. If it is a
section of source code, copy the source code to a file and compile it
with the line just above it in config.log. If the compilation is
successful, try executing it.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x284.html"
ACCESSKEY="P"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="book1.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="c323.html"
ACCESSKEY="N"
>Next &#62;&#62;&#62;</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>I've compiled and installed GTK+, but I can't get any
programs to link with it! <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c192.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Development of GTK+</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>